<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="description" content="pear-admin-flask">
  <meta name="keyword" content="pear-admin-flask">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/layui/css/layui.css') }}"/>
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/css/main.css') }}"/>
  <link rel="stylesheet" href="{{ url_for('static', filename='/index/css/load.css') }}"/>
  <style>
      .layui-nav .layui-this:after {
          display: none;
      }

      .layui-nav .layui-nav-bar {
          display: none;
      }
  </style>
  <title>{% block title %}{% endblock %}</title>
  <link rel="stylesheet" href="{{ url_for('static',filename='bootStrap/bootstrap@5.1.css') }}">
  {% block head %}{% endblock %}
</head>
<body>
<!-- header -->
<div class="ew-header">
  <div class="ew-nav-group">
    <div class="nav-toggle"><i class="layui-icon layui-icon-more-vertical"></i></div>
    <ul class="layui-nav" lay-filter="ew-header-nav">
      {% if user %}
      <li class="layui-nav-item">
        <a lay-href="#">{{user.username}}</a>
      </li>
      <li class="layui-nav-item">
        <a lay-href="#">注销</a>
      </li>
      {% else %}
      <li class="layui-nav-item">
        <a lay-href="#">登录</a>
      </li>
      <li class="layui-nav-item">
        <a href="#" target="_blank">注册</a>
      </li>
      {% endif %}
    </ul>
  </div>
</div>
<div class="container">
  {% block body %}
  {% endblock %}
</div>
</body>
</html>